from pptx import Presentation

prs = Presentation()
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtilte = slide.placeholders[1]

title.text = "Hello "
subtilte.text = 'subtitle'

prs.save("../middle/test.pptx")